var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);

var _hmt = _hmt || [];

(function () {
  var hm = document.createElement("script");
  hm.type = "text/javascript";
  var p = ("https:" == document.location.protocol) ? "https":"http";
  hm.src = p + "://hm.baidu.com/hm.js?860f293278933d54be8e2b0a7c510af6";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm,s);
})();

var statistic_patterns = <%- JSON.stringify(patterns) %>;

function statistic_push(uri){
<% if(userAgent && !userAgent.match(/Phantomjs/i) && (host=="store.gf.com.cn" || host=="service.gf.com.cn")){ %>
    if(!(uri && typeof(uri)=="string")) return;
    _hmt.push(['_trackPageview',uri ]);
<% }//if %>
}

<% if(userAgent && !userAgent.match(/Phantomjs/i) && (host=="store.gf.com.cn" || host=="service.gf.com.cn")){ %>
_hmt.push(['_trackPageview','/' ]);
<% }//if %>
